{if $options!=''}

<div class="listing_attributes">
	{foreach name=outer item=options_data from=$options} 
	{if $options_data.DATA || $GM_HIDE_OUT_OF_STOCK == 'false'}
		<div class="attributes">
		
			<div class="attributes_name">{$options_data.NAME}:</div>
			
			{foreach key=key_data item=item_data from=$options_data.DATA}
			  <div class="attribute_radio">
					<input class="gm_listing_form{* AJAX Price-Update class START *}{if $item_data.PRICE} has-price{/if}{* AJAX Price-Update class END *}" onclick="gm_calc_prices_listing('{$PRODUCTS_ID}')" type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}"{php}if(!($chk)) echo ' checked="checked"'; $chk=true{/php} />
				  {$item_data.TEXT} {if $item_data.PRICE!=''}( {$item_data.PREFIX}{$item_data.PRICE} ){/if}{if $GM_SHOW_STOCK == 'true' && $options_data.NAME != 'downloads'} {$GM_STOCK_TEXT_BEFORE}{$item_data.GM_STOCK}{$GM_STOCK_TEXT_AFTER}{/if}
				</div>
			{/foreach}
			{php} $chk = false; {/php}
	
		</div>
	{/if}	
	{/foreach} 
</div>

{/if}